package javaAPI.StringPractice;

import java.util.Random;

public class StringPractice5 {
    public static void main(String[] args) {
        Random yzm=new Random();
        char[] chs=new char[52];
        String str=new String();
        for (int i = 0; i < chs.length; i++) {
            if (i <= 25) {
                //小写字母
                chs[i] = (char) (97 + i);
            } else {
                //当i>26时,添加大写字母
                chs[i] = (char) (65 + i - 26);
            }
        }
        String result="";
        Random r = new Random();
        //System.out.print(result);
        for (int i = 0; i < 2; i++) {
            int number = r.nextInt(10);
            result = result + number;
        }
    }
}
